package com.whfc.mach.dao;

import com.whfc.mach.entity.AppMachMaintainFile;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AppMachMaintainFileMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(AppMachMaintainFile record);

    int insertSelective(AppMachMaintainFile record);

    AppMachMaintainFile selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(AppMachMaintainFile record);

    int updateByPrimaryKey(AppMachMaintainFile record);

    /**
     * 根据保养id查找
     *
     * @param maintainId
     * @return
     */
    List<String> selectByMaintainId(@Param("maintainId") Integer maintainId);

    /**
     * 批量插入
     *
     * @param maintainId
     * @param fileList
     */
    void batchInsert(@Param("maintainId") Integer maintainId, @Param("fileList") List<String> fileList);

    /**
     * 逻辑删除
     *
     * @param maintainId
     */
    void deleteLogic(@Param("maintainId") Integer maintainId);
}